package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.common.R;
import com.itheima.reggie.dto.SetmealDto;
import com.itheima.reggie.entity.Dish;
import com.itheima.reggie.entity.Setmeal;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface SetmealService extends IService<Setmeal> {
 R<String> save1(SetmealDto setmealDto);

 Page<SetmealDto> page(Integer page, Integer pageSize, String name);

 R<String> deleteByIds(List<Long> longs);

 R<String> updateStatus(Integer status, List<Long> ids);

 R<List<Setmeal>> getDish(Setmeal setmeal);

 SetmealDto getByIdWithDishes(Long setmealId);

 SetmealDto upDateWithSetmealDishes(SetmealDto setmealDto);
}
